#!/usr/bin/env bash

PREFIX=$(realpath $(cd "$(dirname "$0")"; pwd))

cd $PREFIX

VERSION=1.20.1
NAME=xorg-server-$VERSION.tar.gz
wget https://github.com/mirror/xserver/archive/$NAME


tar zxvf $NAME
cd $NAME

$PREFIX/patch.py

./autogen.sh
./configure --prefix=/usr

make && make install


